home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Online / httpproxy / src / makefile < prev    next >
Makefile  |  1996-08-20  |  2KB  |  115 lines

  1. # httpproxy and related tools
  2. #
  3. # copyright 1995-96 Matthias Hopf
  4. #
  5. # All rights reserved.
  6. #
  7.  
  8.  
  9. # All objects
  10. HTTPPROXY_O   = httpproxy.o logging.o service.o cache.o queue.o net_amitcp.o net_as225.o
  11. HTTPDELETE_O  = httpdelete.o cache.o
  12. HTTPFETCH_O   = httpfetch.o net_amitcp.o net_as225.o
  13. HTTPRESOLVE_O = httpresolve.o cache.o
  14.  
  15. # Front end
  16. test:
  17.     @smake "CFLAGS=cpu=000 noopt stackcheck" all
  18.  
  19. debug:
  20.     @smake "CFLAGS=cpu=000 noopt stackcheck define DEBUG=1" all
  21.  
  22. db:
  23.     @smake clean
  24.     @smake "CFLAGS=cpu=000 noopt noerrrexx stackcheck define DEBUG=1" all
  25.  
  26. ndb:
  27.     @smake clean
  28.     @smake "CFLAGS=cpu=000 noopt noerrrexx" all
  29.  
  30. ndb000:
  31.     @smake clean
  32.     @smake "CFLAGS=cpu=000 opt noerrrexx" all
  33.  
  34. ndb020:
  35.     @smake clean
  36.     @smake "CFLAGS=cpu=020 opt noerrrexx" all
  37.  
  38. depend:
  39.     @echo >t:makedepend.shell  "makedepend `list lformat=%s%s \#?.c`"
  40.     @execute t:makedepend.shell
  41.  
  42. all:    httpproxy httpdelete httpfetch httpresolve
  43.  
  44.  
  45. # Special: clean
  46. clean:
  47.     -delete \#?.o \#?.lnk
  48.  
  49. # Special: check in
  50. ci:
  51.     -ci -l \#?.c \#?.h makefile
  52.     -ci -l \#?.guide \#?.html
  53.     -ci -l Install \#?.rexx
  54.  
  55. # Special: make lha archive
  56. lha:
  57.     execute makelha
  58.  
  59. small:
  60.     execute makelha SMALL
  61.  
  62. alpha:
  63.     execute makelha ALPHA
  64.  
  65. # Standard files
  66.  
  67. # Linking step
  68. httpproxy: $(HTTPPROXY_O)
  69.     sc link to $@ $(HTTPPROXY_O)
  70.  
  71. httpdelete: $(HTTPDELETE_O)
  72.     sc link to $@ $(HTTPDELETE_O)
  73.  
  74. httpfetch: $(HTTPFETCH_O)
  75.     sc link to $@ $(HTTPFETCH_O)
  76.  
  77. httpresolve: $(HTTPRESOLVE_O)
  78.     sc link to $@ $(HTTPRESOLVE_O)
  79.  
  80. # Spezial rules
  81. net_amitcp.o:
  82.     $(CC) $(CFLAGS) $< idir netinclude: gst include:allnet.gst
  83.  
  84. net_as225.o:
  85.     $(CC) $(CFLAGS) $< idir netinc: nogst
  86.  
  87.  
  88. # Source dependencies - should be done by makedepend, but isn't... :(
  89.  
  90. logging.o:      logging.c
  91. net_amitcp.o:   net_amitcp.c
  92. httpfetch.o:    httpfetch.c
  93. net_as225.o:    net_as225.c
  94. httpresolve.o:  httpresolve.c
  95. httpproxy.o:    httpproxy.c
  96. httpdelete.o:   httpdelete.c
  97. service.o:      service.c
  98. cache.o:        cache.c
  99. queue.o:        queue.c
  100.  
  101.  
  102. # DO NOT DELETE THIS LINE -- make depend depends on it.
  103.  
  104. net_as225.o: net.h debug.h
  105. logging.o: httpproxy.h cache.h debug.h logging.h
  106. httpresolve.o: httpproxy.h cache.h debug.h httpproxy_rev.h
  107. net_amitcp.o: net.h debug.h
  108. httpfetch.o: net.h debug.h
  109. queue.o: queue.h logging.h httpproxy.h cache.h debug.h
  110. httpproxy.o: httpproxy.h cache.h debug.h net.h logging.h queue.h
  111. httpproxy.o: httpproxy_rev.h
  112. httpdelete.o: httpproxy.h cache.h debug.h
  113. cache.o: httpproxy.h cache.h debug.h logging.h
  114. service.o: httpproxy.h cache.h debug.h
  115.